package com.gotop.mapper.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gotop.entity.system.Post;
import com.gotop.vo.system.PostVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PostDao extends BaseMapper<Post> {

    /**
     * 自定义分页
     *
     * @param page
     * @param post
     * @return
     */
    List<PostVO> selectPostPage(IPage page, PostVO post);

    /**
     * 获取岗位名
     *
     * @param ids
     * @return
     */
    List<String> getPostNames(List<Long> ids);

}